<?php
mysql_connect("127.0.0.1","root","sd2013");
mysql_select_db("mathRomp");

$q1=mysql_query("UPDATE `Game` SET turn = (SELECT `userId` FROM `Games-Users` WHERE gameId = 111 AND userId != 22) WHERE gameId = 111");
while($g=mysql_fetch_assoc($q1)){
  $output1[]=$g;
}
print(json_encode($output1));

?>